package de.tum.in.far.threedui.superbrickball.engine.physics.models;

import javax.media.j3d.Transform3D;
import javax.vecmath.Tuple3f;
import javax.vecmath.Vector3f;

public class SphereModel extends PhysicalModel{
	private Vector3f position;
	public Vector3f getPosition() {
		return position;
	}

	public void setPosition(Vector3f position) {
		this.position = position;
	}

	public float getRadius() {
		return radius;
	}

	float radius;
	
	public SphereModel(Tuple3f pos, float rad)
	{
		this.position = new Vector3f(pos);
		this.radius = rad;
	}
	
	public void setRadius(float r)
	{
		this.radius = r;
	}
	
	public Transform3D getTransform3D()
	{
		Transform3D t3d = new Transform3D();
		t3d.set(this.position);
		
		return t3d;
	}

}
